package com.wpre.seleniumtest.PageTest;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2025-03-31
 * Time: 14:49
 */
public class User {
    public static void create(WebDriver driver) throws InterruptedException {
        driver.findElement(By.xpath("/html/body/div[2]/div[1]/ul/li[3]/ul/li[2]/a")).click();
        Thread.sleep(1000);
        driver.findElement(By.xpath("/html/body/div/form/div[1]/input")).sendKeys("姓名1");
        Thread.sleep(1000);
        driver.findElement(By.xpath("/html/body/div/form/div[2]/input")).sendKeys("youxiang1@qq.com");
        Thread.sleep(1000);
        driver.findElement(By.xpath("/html/body/div/form/div[3]/input")).sendKeys("手机号1");
        Thread.sleep(1000);
    }
}
